﻿<UserControl x:Class="TheCollectiveNetwork.CustomControls.MainPasswordChangeControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="400" d:DesignWidth="500">

    <Border x:Name="PasswordChangeBorder" Style="{StaticResource PasswordChangeBorderStyle}" >
        <Grid x:Name="PasswordChangeGrid" Style="{StaticResource PasswordChangeGridStyle}" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="40*" />
                <ColumnDefinition Width="60*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="30" />
            </Grid.RowDefinitions>
            <TextBlock Text="You are required to change your password." x:Name="PasswordChangeControlHeaderText" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="5" />
            <TextBlock Text="Username" x:Name="PasswordChangeControlUserNameText" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="5" Grid.ColumnSpan="2" FontWeight="Bold" />
            <TextBlock Text="Current password" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="5" />
            <TextBlock Text="New password" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="5" />
            <TextBlock Text="Retype new password" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="5"/>

            <TextBlock Text="" x:Name="PasswordChangeControlUserIDText" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center" Padding="5" FontWeight="Bold"  />
            <PasswordBox x:Name="PasswordChangeControlPasswordOldText"  Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5" Width="220" />
            <PasswordBox x:Name="PasswordChangeControlPasswordNewText"  Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5" Width="220" />
            <PasswordBox x:Name="PasswordChangeControlPasswordConfirmText"  Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5" Width="220" />
            <StackPanel x:Name="PasswordChangeControlButtonStackPanel"  Grid.Column="0" Grid.Row ="5" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,0">
                <Button x:Name="PasswordChangeControlSaveButton" Content="Save" Grid.ColumnSpan="2" Width="150" Margin="5" Click="PasswordChangeControlSaveButton_Click"/>
                <Button x:Name="PasswordChangeControlCloseButton" Content="Close" Grid.ColumnSpan="2" Width="150" Margin="5" Click="PasswordChangeControlCloseButton_Click"/>
            </StackPanel>
            <Border x:Name="PasswordChangeControlErrorBorder" Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="2" Background="#FFF56E70" Height="25"  CornerRadius="10" Visibility="Collapsed">
                <TextBlock  x:Name="PasswordChangeControlMessageText" Text=""  HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Foreground="#FFFFFFFF" TextAlignment="Center" />
            </Border>

        </Grid>

    </Border>
</UserControl>
